package com.crm.sys.model;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

import com.crm.base.model.BaseModel;

/** 
Create Table
CREATE TABLE `crm_approve_record` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` varchar(50) DEFAULT NULL COMMENT '审批名称',
  `acid` int(11) DEFAULT NULL COMMENT '审批配置ID',
  `url` varchar(256) DEFAULT NULL COMMENT '审批内容链接',
  `remark` text COMMENT '备注',
  `parentid` int(11) DEFAULT NULL COMMENT '父ID',
  `uid` bigint(20) DEFAULT NULL COMMENT '审批人',
  `level` int(11) DEFAULT NULL COMMENT '审批等级',
  `state` int(11) DEFAULT NULL COMMENT '状态(0 审批中  1 待审批  2 通过  3 驳回  4 重审 )',
  `type` int(11) DEFAULT NULL COMMENT '类型( 1 客户审批 2 人才审批)',
  `content` varchar(200) DEFAULT NULL COMMENT '原内容',
  `newcontent` varchar(200) DEFAULT NULL COMMENT '修改内容',
  `createdate` datetime DEFAULT NULL COMMENT '创建时间',
  `updatedate` datetime DEFAULT NULL COMMENT '修改时间',
  `updateuser` varchar(50) DEFAULT NULL COMMENT '修改人',
  `number` bigint(20) DEFAULT NULL COMMENT '流水号',
  `contentid` varchar(20) DEFAULT NULL COMMENT '原内容ID',
  `category` int(11) DEFAULT NULL COMMENT '分类(1  名称修改   2 商号修改)',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=86 DEFAULT CHARSET=utf8 COMMENT='审批记录'
*/
public class ApproveRecord extends BaseModel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 2681885504360704466L;
	private String name; //审批名称
	private Integer acid; //审批配置ID
	private String url; //审批内容链接
	private String remark; //备注
	private Integer parentid; //父ID
	private Long uid; //审批人
	private Integer level; //审批等级
	private Integer maxlevel;//最高审批等级
	private Integer state; //状态(0 审批中  1 待审批  2 通过  3 驳回  4 重审 )
	private Integer type; //类型( 1 客户审批 2 人才审批)
	private String content; //原内容
	private String newcontent; //修改内容
	private Long number;//流水号
	private String contentid;//原内容ID
	private Integer category;//分类(1  名称修改   2 商号修改)
	private String uname;
	private String couname;

	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public String getCouname() {
		return couname;
	}
	public void setCouname(String couname) {
		this.couname = couname;
	}
 
	public void setName(String name){
		this.name=name;
	}
	public String getName(){
		return name;
	}
	public void setAcid(Integer acid){
		this.acid=acid;
	}
	public Integer getAcid(){
		return acid;
	}
	public void setUrl(String url){
		this.url=url;
	}
	public String getUrl(){
		return url;
	}
	public void setRemark(String remark){
		this.remark=remark;
	}
	public String getRemark(){
		return remark;
	}
	public void setParentid(Integer parentid){
		this.parentid=parentid;
	}
	public Integer getParentid(){
		return parentid;
	}
	public void setUid(Long uid){
		this.uid=uid;
	}
	public Long getUid(){
		return uid;
	}
	public void setLevel(Integer level){
		this.level=level;
	}
	public Integer getLevel(){
		return level;
	}
	public void setState(Integer state){
		this.state=state;
	}
	public Integer getState(){
		return state;
	}
	public void setType(Integer type){
		this.type=type;
	}
	public Integer getType(){
		return type;
	}
	public void setContent(String content){
		this.content=content;
	}
	public String getContent(){
		return content;
	}
	public void setNewcontent(String newcontent){
		this.newcontent=newcontent;
	}
	public String getNewcontent(){
		return newcontent;
	}
	 
	public Long getNumber() {
		return number;
	}
	public void setNumber(Long number) {
		this.number = number;
	}
	public String getContentid() {
		return contentid;
	}
	public void setContentid(String contentid) {
		this.contentid = contentid;
	}
	public Integer getCategory() {
		return category;
	}
	public void setCategory(Integer category) {
		this.category = category;
	}
	
	public Integer getMaxlevel() {
		return maxlevel;
	}
	public void setMaxlevel(Integer maxlevel) {
		this.maxlevel = maxlevel;
	}
	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
}

